package com.leyou.user.api;

import com.leyou.user.pojo.Address;
import com.leyou.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: taft
 * @Date: 2018-10-25 11:48
 */


public interface UserApi {

    @GetMapping("query")
    User queryUser(
            @RequestParam("username") String username,
            @RequestParam("password") String password
    );
    @GetMapping("queryAddresses")
    List<Address> queryAddresses(
            @RequestParam(value = "id",required = false)Long Id,
            @RequestParam(value = "user_id",required = false)Long userId

    );
}
